package com.mathassistant.client.service;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.mathassistant.shared.ExerciseDTO;
import com.mathassistant.shared.TopicDTO;

@RemoteServiceRelativePath("exercise")
public interface ExerciseService extends RemoteService{
	void createExercise(ExerciseDTO exercise, TopicDTO topic);
	void updateExercise(ExerciseDTO exercise);
	void deleteExercise(ExerciseDTO exercise);
	int getCount(TopicDTO tp);
	ExerciseDTO getNextExercise(int iCurrEx, TopicDTO tp);
	ArrayList<ExerciseDTO> getExercise(int iCurrEx, TopicDTO tp);
}
